/**
 * Project: topdt-jbpm Copyright 2013 Top Digital Technology Co. Ltd. All right reserved.
 */
package com.topdt.jbpm.identity;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 建立日期 : 2013-5-10 下午3:17:46<br>
 * 作者 : balance<br>
 * 模块 : <br>
 * 描述 : <br>
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */
public class IdFactory {

  private static String CLASS_PATH = "com.topdt.jbpm.identity.impl.IIdentityServiceFactory";

  private static Logger log = LoggerFactory.getLogger(IdFactory.class);

  private IdFactory() {

  }

  public static IdentityServiceFactory getIdentityServiceFactory() {
    IdentityServiceFactory idServiceFactory =
        (IdentityServiceFactory) com.thx.common.util.ObjectUtils.getInstance(CLASS_PATH);
    log.info("<提示>:Actual binding is of type [{}]", idServiceFactory.getIdentityServiceClassStr());
    return idServiceFactory;
  }

}
